]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Fix delayed grab when entering via gesture
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Mar 2026 18:42:18 +0000 (19:42 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Mar 2026 18:42:58 +0000 (19:42 +0100)
When showing the overview in response to a gesture update, we
set the corresponding overview properties first before syncing
the grab.

However as we don't sync the grab while the overview is animating,
we currently end up only taking the grab once the animation is complete.

This is unintentional and messes with the expected keyboard focus,
so only mark the animation as in progress after syncing the grab.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8967
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4128>

js/ui/overview.js

index d3d64ae71b6fc2fded0f2e4c0ec515dc6f56319c..da3427b8f69506ecf458aaf23cdad48734f2f2a8 100644 (file)
@@ -364,7 +364,6 @@ export class Overview extends Signals.EventEmitter {
             this._shown = true;
             this._visible = true;
             this._visibleTarget = true;
-            this._animationInProgress = true;
 
             Main.layoutManager.overviewGroup.set_child_above_sibling(
                 this._coverPane, null);
@@ -373,6 +372,8 @@ export class Overview extends Signals.EventEmitter {
 
             Main.layoutManager.showOverview();
             this._syncGrab();
+
+            this._animationInProgress = true;
         }
 
         this._overview.controls.gestureProgress(progress);